//
//  LBQuadTexture.h
//  OpenGLGame
//
//  Created by Nguyen Cong Huy on 4/15/13.
//  Copyright (c) 2013 UIT. All rights reserved.
//

#ifndef __OpenGLGame__LBQuadTexture__
#define __OpenGLGame__LBQuadTexture__

#include "LBTexture.h"
#include "LBStruct.h"

class LBQuadTexture : public LBTexture {
    
    float leftTopX, leftTopY, leftBottomX, leftBottomY, rightTopX, rightTopY, rightBottomX, rightBottomY;
public:
    LBQuadTexture();
    LBQuadTexture(int width, int height);
    LBQuadTexture(const unsigned char* imageData, int width, int height);
    LBQuadTexture(const unsigned char* imageData, int width, int height, int bytePerPixel);
    
    virtual void calculateMatrix();
    void setDesCoor(float leftTopX, float leftTopY, float leftBottomX, float leftBottomY, float rightTopX, float rightTopY, float rightBottomX, float rightBottomY);
    virtual void calculateVertices();
};

#endif 
